package com.welike.shibo.eneity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * Created by fangyu on 2019-09-10.
 */
@Data
@TableName(value = "goods")
public class Goods {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 商品id
     */
    @TableField(value = "shop_id")
    private String shopId;

    /**
     * 名字
     */
    @TableField(value = "name")
    private String name;

    /**
     * 图片
     */
    @TableField(value = "img")
    private String img;

    public static final String COL_ID = "id";

    public static final String COL_SHOP_ID = "shop_id";

    public static final String COL_NAME = "name";

    public static final String COL_IMG = "img";
}